home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Online / SpeakFreely / src / lpc10 / setup.c < prev    next >
C/C++ Source or Header  |  2000-05-18  |  944b  |  44 lines

  1. /***********************************************************************
  2. *
  3. *    SETUP Version 55 for Real Time Operation at multiple bit rates
  4. *
  5. *************************************************************************
  6. *
  7. *    Set processing options
  8. */
  9.  
  10. #include "lpcdefs.h"
  11. #include "config.ch"
  12. #include "common.h"
  13. #include "contrl.ch"
  14.  
  15. setup(nargs, args)
  16. int nargs;
  17. char *args[];
  18. {
  19. char fname[80], fname2[80], line[80];
  20. /* 
  21.     Call to getcl() gets name of input and output file and message level.
  22. Real time doesn't need messages about performance, etc, so those will be 
  23. eliminated.
  24. */
  25. if (nargs < 3) {
  26.   printf("Usage: %s inputfile outputfile\n", args[0]);
  27.   exit(1);
  28. }
  29. else {
  30.   fdi = fopen(args[1], "rb");
  31.   if(fdi==NULL) {
  32.     printf("Problem opening [3] %s ... program exiting\n",args[1]);
  33.     exit(1);
  34.   }
  35.  
  36.  
  37.   fdo = fopen(args[2], "w");
  38.   if(fdo == NULL)    {
  39.     printf("Problem opening [4] ... program exiting %s\n",args[2]);
  40.     exit(1);
  41.   }
  42. }
  43. }
  44.